package com.wkb.design.createModing.builderPattern;

import com.wkb.design.createModing.builderPattern.base.ThirtyMobileMeal;
import com.wkb.design.createModing.builderPattern.base.TwentyMobileMeal;
import com.wkb.design.createModing.builderPattern.director.MobileDirector;
import com.wkb.design.createModing.builderPattern.itf.IMobileBuilder;

/**  
 * @author wkb 
 * @version 创建时间：2013-6-13 下午4:55:10  
 * 类说明
 */
public class MainApp {

	public static void main(String[] args) {
		
		//创建指导者
		MobileDirector mobileDirector = new MobileDirector();
		
		//创建20块钱的套餐
		IMobileBuilder twenty = new TwentyMobileMeal();
		
		//创建30块钱的套餐
		IMobileBuilder thirty = new ThirtyMobileMeal();
		
		//创建具体的套餐
		mobileDirector.createMobileMeal(twenty);
		mobileDirector.createMobileMeal(thirty);
		
	}
	
}
